import request from '@/utils/request';

export function terminalBind(data) {
    return request({
        url: '/laiqianle/terminal/bind', method: 'post', data: data,
    });
}

export function terminalBindLocal(data) {
    return request({
        url: '/laiqianle/terminal/bindlocal', method: 'post', data: data,
    });
}

export function terminalUnBind(data) {
    return request({
        url: '/laiqianle/terminal/unbind', method: 'post', data: data,
    });
}

// 查询来钱乐终端列表
export function listTerminal(query) {
    return request({
        url: '/laiqianle/terminal/list', method: 'get', params: query,
    });
}

// 查询来钱乐终端详细
export function getTerminal(id) {
    return request({
        url: '/laiqianle/terminal/' + id, method: 'get',
    });
}

// 新增来钱乐终端
export function addTerminal(data) {
    return request({
        url: '/laiqianle/terminal', method: 'post', data: data,
    });
}

// 修改来钱乐终端
export function updateTerminal(data) {
    return request({
        url: '/laiqianle/terminal', method: 'put', data: data,
    });
}

// 删除来钱乐终端
export function delTerminal(id) {
    return request({
        url: '/laiqianle/terminal/' + id, method: 'delete',
    });
}

//查看马牌
export function showQrcode(data) {
    return request({
        url: '/laiqianle/terminal/showQrcode', method: 'post', data: data,
    });
}


export function terUp(id) {
    return request({
        url: '/laiqianle/terminal/up/' + id, method: 'post',
    });
}
